package com.cashoutgaming.client.widgets.recent_matches;

import com.cashoutgaming.shared.match.MatchPagingLoadResult;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.ViewWithUiHandlers;

/**
 * This is the admin tool desktop view. There are presently no requirements to
 * have any other form factor views for the admin tool, so this will be the only
 * one
 */
public class RecentMatchesView extends ViewWithUiHandlers<RecentMatchesUiHandlers> implements RecentMatchesPresenter.MyView {

	RecentMatchesPanel arp;

	@Inject
	public RecentMatchesView() {
		arp = new RecentMatchesPanel(this);
		this.initWidget(arp);
	}

	@Override
	public void loadData(MatchPagingLoadResult result) {
		arp.loadData(result);
	}

	@Override
	public void load() {
		arp.load();
	}

	@Override
	public RecentMatchesUiHandlers getUiHandlers() {
		return super.getUiHandlers();
	}

	@Override
	public void mask() {
		arp.mask();

	}

	@Override
	public void unmask() {
		arp.unmask();

	}
}
